package com.linjiahao.userCenter.api;

import com.linjiahao.servicebase.common.BaseConstant;
import com.linjiahao.servicebase.common.ResultMap;
import com.linjiahao.servicebase.exception.ErrorMessage;
import com.linjiahao.servicebase.exception.WebChatException;
import com.linjiahao.servicebase.util.JWTUtil;
import com.linjiahao.userCenter.domain.ChatUserInfo;
import com.linjiahao.userCenter.service.ChatUserInfoService;
import com.linjiahao.userCenter.util.MsmSendUtil;
import com.linjiahao.userCenter.vo.PersonInfoVO;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @ClassName ChatUserInfoController
 * @Description: 用户服务控制层api
 * @Author linjiahao
 * @Date 10/1/2021
 **/
@RestController
@Slf4j
@RequestMapping("/api/inner")
public class ChatUserInfoAPIController {


    @Autowired
    private ChatUserInfoService userInfoService;


    @PostMapping("/getUserInfoList")
    public ResultMap getUserInfoList(@RequestBody List<Long> userIds){
        List<ChatUserInfo> list = userInfoService.getUserInfoList(userIds);
        return ResultMap.ok().data("list",list);
    }

}
